<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    //     let count = 0
    // for(var i = 1; i<=100;i++){
    //     if(i%3==0){
    //         count++
    //         console.log(i,'i');
    //     }
    // } 156
    // console.log(count);
    for (var i = 100; i < 1000; i++) {
      let bai = parseInt(i / 100);
      let shi = parseInt((i - bai * 100) / 10);
      let ge = i - bai * 100 - shi * 10;
      if (bai ** 3 + shi ** 3 + ge ** 3 == i) {
        console.log(i, "i");
      }
    }
    for (var i = 2; i <= 9; i++) {
      if (9 % i == 0) {
        console.log("不是质数");
      }
    }
  </script>
</html>
